<%@page import="com.cn.entity.Department"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>

<body>

<form action="GuahaoAction" method="post">

<h4>挂号</h4>

<table>

<tr>
<td>患者姓名</td>

<td><input type="text" name="user.xingming"></td>
</tr>

<tr>
<td>证件号码</td>

<td><input type="text" name="user.identity"></td>
</tr>
</table>


<table>

<%DepartmentDao dd=new DepartmentDao();
List<Department> list=dd.scanAll();

%>

<tr> <td>    
<select name="department">
<%for (int i=0;i<list.size();i++) {
	Department department=list.get(i);
	%>


<option ><%=department.getDepartmentname() %></option>



<%} %>
  
</select>
</td>
</tr>

<tr><td><input type="submit" value="挂号"></td></tr>
</table> 
</form>


</body>





</html>